package com.bootdo.coupon.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-02-02 17:53:32
 */
@Entity
@Table(name = "biz_coupon")
public class CouponDO implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    @Id
    @GeneratedValue
    @Column(name = "id")
    private Long id;
    //标题
    @Column(name = "title")
    private String title;
    //内容
    @Column(name = "content")
    private String content;
    //1打折，2满就减，3直减
    @Column(name = "type")
    private Integer type;
    //值
    @Column(name = "value")
    private BigDecimal value;
    //数量
    @Column(name = "quantity")
    private Integer quantity;
    //剩余数量
    @Column(name = "last_quantity")
    private Integer lastQuantity;
    //过期时间
    @Column(name = "expire_time")
    private Date expireTime;
    //创建时间
    @Column(name = "gtm_create")
    private Date gtmCreate;
    //修改时间
    @Column(name = "gtm_modified")
    private Date gtmModified;

    /**
     * 设置：
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取：
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置：标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取：标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置：内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取：内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置：1打折，2满就减，3直减
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 获取：1打折，2满就减，3直减
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置：值
     */
    public void setValue(BigDecimal value) {
        this.value = value;
    }

    /**
     * 获取：值
     */
    public BigDecimal getValue() {
        return value;
    }

    /**
     * 设置：数量
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取：数量
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * 设置：剩余数量
     */
    public void setLastQuantity(Integer lastQuantity) {
        this.lastQuantity = lastQuantity;
    }

    /**
     * 获取：剩余数量
     */
    public Integer getLastQuantity() {
        return lastQuantity;
    }

    /**
     * 设置：过期时间
     */
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    /**
     * 获取：过期时间
     */
    public Date getExpireTime() {
        return expireTime;
    }

    /**
     * 设置：创建时间
     */
    public void setGtmCreate(Date gtmCreate) {
        this.gtmCreate = gtmCreate;
    }

    /**
     * 获取：创建时间
     */
    public Date getGtmCreate() {
        return gtmCreate;
    }

    /**
     * 设置：修改时间
     */
    public void setGtmModified(Date gtmModified) {
        this.gtmModified = gtmModified;
    }

    /**
     * 获取：修改时间
     */
    public Date getGtmModified() {
        return gtmModified;
    }
}
